package com.gzdh.tang.ali.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class OuterExtends {
    private String color;
    private String title;
    private List<Map<String, String>> detail;

    public OuterExtends() {
        this.color = "#bbbb";
        this.title = "";
        this.detail = new ArrayList<>();
    }

    public void addDetail(String nameValue, String keyValue) {
        Map<String, String> map = new HashMap<>();
        map.put("name", nameValue);
        map.put("value", keyValue);
        detail.add(map);
    }
}
